package com.zbkj.common.model.agent;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 小区分红统计表
 * </p>
 *
 * @author Caiyc
 * @since 2025-07-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_community_stat")
@ApiModel(value="CommunityStat对象", description="小区分红统计表")
public class CommunityStat implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "所在小区")
    private String community;

    @ApiModelProperty(value = "所在小区ID(eb_community_brokerage)")
    private Integer communityId;

    @ApiModelProperty(value = "品牌商ID（对应SystemAdmin表ID）")
    private Integer brandId;

    @ApiModelProperty(value = "营业额")
    private BigDecimal businessAmount;

    @ApiModelProperty(value = "订单数")
    private Integer orderNum;

    @ApiModelProperty(value = "利润%")
    private BigDecimal profitScale;

    @ApiModelProperty(value = "利润金额")
    private BigDecimal profit;

    @ApiModelProperty(value = "分红发放时间")
    private Date settlementTime;

    @ApiModelProperty(value = "是否已发放")
    private Boolean isSettlement;

    @ApiModelProperty(value = "统计周期(0:天，1：周，2：月，99：选择时间)")
    private Integer cycle;

    @ApiModelProperty(value = "周期开始时间")
    private Date startTime;

    @ApiModelProperty(value = "周期结束时间")
    private Date endTime;

    @ApiModelProperty(value = "是否删除")
    private Boolean isDel;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "商户id,0-平台")
    private Integer merId;

    @ApiModelProperty(value = "未结算平台营业额")
    private BigDecimal unsettledAmount;

    @ApiModelProperty(value = "本店营业额")
    private BigDecimal storeAmount;
}
